<?php foreach($notes as $note): ?>
<div class="comment" id="c<?php echo $note->id; ?>">

    <div class="time">
        <?php echo Yii::t('site','Written on {dateCreated} by {author}',array('{dateCreated}'=>Yii::app()->dateFormatter->formatDateTime($note->tsCreated,'medium','short'),'{author}'=>$note->createdBy->recordName)); ?>
    </div>

    <div class="content">
        <?php echo nl2br(CHtml::encode($note->content)); ?>
    </div>

</div><!-- comment -->
<?php endforeach; ?>
